package com.jlnk.stockdemo.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.jlnk.stockdemo.R;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class NewsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_news);
        initView();
    }

    private void initView() {
        TextView tv_title = findViewById(R.id.tv_title);
        TextView tv_datetime = findViewById(R.id.tv_datetime);
        TextView tv_content = findViewById(R.id.tv_content);
        String title = getIntent().getStringExtra("title");
        String datetime = getIntent().getStringExtra("datetime");
        String content = getIntent().getStringExtra("content");
        tv_title.setText(title);
        tv_datetime.setText(datetime);
        tv_content.setText(content);
    }
}
